package com.nip.commons.xmlconfig.test;

import java.util.List;
import java.util.Map;

import com.nip.commons.xmlconfig.XmlConfigBase;

public class MConfig extends XmlConfigBase {
	private static final MConfig mConfig = new MConfig();
	
	public static MConfig getInstance()
	{
		return mConfig;
	}
	
	public int getCacheSize()
	{
		return getIntValue("cache.size", 10);
	}
	
	public String getURL()
	{
		return getValue("db.url", "");
	}
	
	public List<Map<String,String>> getServer()
	{
		return getMapValues("core.server", "size","url","drives","user");
	}


}
